package com.txr.news.customexception;

import com.txr.news.pojo.ExType;
import lombok.Data;

/**
 * 系统级异常
 */
@Data
public class SystemException extends RuntimeException {
    private ExType exType;

    public SystemException(String message,ExType exType){
        super(message);
        this.exType = exType;
    }
    public SystemException(String message,ExType exType,Throwable throwable){
        super(message, throwable);
        this.exType = exType;
    }
}
